package com.itheima.mapper;

import com.itheima.domain.Emp;
import com.itheima.domain.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface EmpMapper {

    @Select("select * from EMP")
    public List<Emp> findAll();

    @Select("delete from EMP where empno=#{id}")
    public void deleteById(int id);

    @Select("update EMP set job=#{job},ename=#{ename},hiredate=#{hireDate},sal=#{sal} where empno=#{empno}")
    public void update(Emp emp);
}
